package com.congwulin.wechat.mapper.product;

import com.congwulin.wechat.entity.product.Product;
import com.congwulin.wechat.util.interfaces.IVOPersistent;

import java.util.List;

public class ProductPersistent implements IVOPersistent {

    private ProductMapper mapper;

    public ProductPersistent(ProductMapper mapper){this.mapper = mapper;}

    @Override
    public void delete(List<String> list) {

    }

    @Override
    public void insert(List<?> list) {
        mapper.batchInsert((List<Product>)list);
    }

    @Override
    public void update(List<?> list) {
        mapper.batchUpdate((List<Product>)list);
    }
}
